<include file="Common/header" />
<title>编辑管理员</title>
</head>
<body>
<nav class="breadcrumb">
<i class="Hui-iconfont"></i> {:location();}
 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
 </nav>
<div class="pd-20">
	<form action="" method="post" class="form form-horizontal" id="form-admin-add">
 
       	<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>用户昵称:</label>
			<div class="formControls col-5">
<input type="text" class="input-text" value="{$nickname}"  placeholder="" name="nickname" datatype="*2-16" nullmsg="昵称不能为空">
			</div>
			<div class="col-4"> </div>
		</div>
         
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>用户名:</label>
			<div class="formControls col-5">
<input type="text" class="input-text" value="{$username}" ajaxurl="{:U('repeat_user',array('id'=>I('get.id')))}" placeholder="" id="user-name" name="username" datatype="*2-16" nullmsg="用户名不能为空">
			</div>
			<div class="col-4"> </div>
		</div>
		 
        
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>输入密码:</label>
			<div class="formControls col-5">
				<input type="password" placeholder="输入密码" autocomplete="off" <if condition="I('get.id','','int')"> ignore="ignore"</if> value="" class="input-text" datatype="*5-20" nullmsg="密码不能为空" name="newpassword1" >
			</div>
			<div class="col-4"> </div>
		</div>
		 	<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>确认密码:</label>
			<div class="formControls col-5">
				<input type="password" placeholder="确认密码" recheck="newpassword1" <if condition="I('get.id','','int')"> ignore="ignore"</if> autocomplete="off" value="" class="input-text" datatype="*5-20" nullmsg="密码不能为空" name="newpassword2">
			</div>
			<div class="col-4"> </div>
		</div>
		  	<div class="row cl">
			<label class="form-label col-3"> 联系电话:</label>
			<div class="formControls col-5">
<input type="text" class="input-text" value="{$tel}"  placeholder="" name="tel" ignore="ignore" datatype="m">
			</div>
			<div class="col-4"> </div>
		</div>
        
         	<div class="row cl">
			<label class="form-label col-3"> 邮箱:</label>
			<div class="formControls col-5">
<input type="text" class="input-text" value="{$email}"  placeholder="" ignore="ignore" name="email" datatype="e">
			</div>
			<div class="col-4"> </div>
		</div>
           	<div class="row cl">
			<label class="form-label col-3"> 备注:</label>
			<div class="formControls col-5">
		 <textarea name="remark" cols="" rows="" class="textarea" placeholder="说点什么...100个字符以内" dragonfly="true" >{$remark}</textarea>
			</div>
			<div class="col-4"> </div>
		</div>
        
        
	 	 	<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>选择角色:</label>
			<div class="formControls col-5 " > 
             <select class="select select-box " size="1" name="role_id"> 
				<volist name="roles" id="vo">
 					<option value="{$vo.id}" <eq name="role_id" value="$vo['id']"> selected </eq> >{$vo.role_name}</option> 
				 
                </volist>
             </select>   
			</div>
			<div class="col-4"> </div>
		</div>
        
		  	<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>状态:</label>
			<div class="formControls col-5 " > 
             <select class="select select-box " size="1" name="status">
              <option value="1" <if condition="$status eq 1"> selected</if> > 启用</option>
              <option value="0" <if condition="$status eq '0'">selected </if> > 禁用</option>
            </select>
			</div>
			<div class="col-4"> </div>
		</div>
        
		<div class="row cl">
			<div class="col-9 col-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</div>
 <script type="text/javascript">
$(function(){
 	$("#form-admin-add").Validform({tiptype:2, ajaxurl:{}});
});
</script>
</body>
</html>